package com.zhuanzhuan.hero.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhuanzhuan.hero.user.entity.HeroUserLabelAuthRecord;
import com.zhuanzhuan.hero.user.pojo.bo.AuthDateNumBO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * dal Interface:HeroUserLabelAuthRecord
 * @author hanjunjun
 * @date 2024-7-3
 */
public interface HeroUserLabelAuthRecordMapper extends BaseMapper<HeroUserLabelAuthRecord> {

    List<HeroUserLabelAuthRecord> select(HeroUserLabelAuthRecord record);

    Integer getCount(HeroUserLabelAuthRecord record);

    List<AuthDateNumBO> groupAuthDateNum(@Param("toUid") List<Long> toUid, @Param("labelType") Integer labelType,
        @Param("operateType") Integer operateType, @Param("createTimeStart") Date createTimeStart);

    List<AuthDateNumBO> countUidAuthNum(@Param("toUid") List<Long> toUid, @Param("labelType") Integer labelType,
        @Param("operateType") Integer operateType, @Param("createTimeStart") Date createTimeStart);
}